import 'package:auto_route/auto_route.dart';
import 'package:written_exam/features/box/box_detail_page.dart';
import 'package:written_exam/features/box/box_page.dart';
import 'package:written_exam/features/error/not_found_page.dart'; // 新增引用

part 'app_router.gr.dart';

@AutoRouterConfig()
class AppRouter extends _$AppRouter {
  @override
  List<AutoRoute> get routes => [
    AutoRoute(page: BoxRoute.page, initial: true),
    AutoRoute(page: BoxDetailRoute.page),
    AutoRoute(page: NotFoundRoute.page, path: '*'), // 添加通配符路由
  ];
}
